package logic;

import com.jme.scene.Node;

public class RespawnTestController extends DelayedController {
	
	private static final long serialVersionUID = 1L;
	
	private RespawnTest test;
	private Node parent;
	
	public RespawnTestController(RespawnTest test, Node parent) {
		super(2f);
		this.test = test;
		this.parent = parent;
	}

	@Override
	protected void delayedUpdate(float time) {
		parent.removeController(this);
		synchronized (test) {
			test.notifyAll();
		}
	}
}